#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "../utility/assert_helper.h"
#include "../hive_access/nt_hive.h"
#include "../windows_manager/windows_info.h"
#include "../windows_manager/sys_search.h"
#include "../windows_manager/reg_accessor.h"

int main()
{
	Windows_Info_Group & win_infos = windows_searcher::get_information_of_windows();
	Hive_Accessor reg(win_infos.get_specified_windows_information(0));
	assert(0 == reg.reg_open("HKEY_LOCAL_MACHINE", "SOFTWARE\\SiS"));
	assert(0 == reg.reg_open("HKEY_LOCAL_MACHINE", "SYSTEM"));
	assert(0 == reg.reg_open("HKEY_USERS", ".DEFAULT\\Console"));
	assert(0 == reg.reg_open("HKEY_CURRENT_USER", "EUDC\\936"));
	assert(0 == reg.reg_open("HKEY_USERS", ".DEFAULT\\Control Panel\\Desktop"));
	//assert(REG_SZ == reg.get_data_type("WindowMetrics\\CaptionHeight"));
	//assert(4 == reg.get_data_length("CaretWidth"));
	return 0;
}
